<?php
/**
 * Enter description here ...
 * @author Micou13630
 *
 */
class ValidatorType extends Bones implements IRenderable {
	
	protected $applyWhen;
	protected $dependentFields;
	
	protected $clientOnly = true;
	
	protected $errorMessage;
	
	protected $resultingValue;
	
	protected $stopIfFalse;
	protected $stopOnError;
	
	protected $type;
	protected $validateOnChange;
	
	protected $min;
	protected $max;
	
	protected $expression;
	
	protected $mask;
	protected $transformTo;
	
	protected $otherField;
	
	protected $list;
	
	protected $substring;
	protected $operator;
	protected $count;
	
	protected $precision;
	protected $roundToPrecision;
	
	/**
	 * Constructeur
	 * @param unknown_type $type
	 */
	public function ValidatorType($type) {
		parent::Bones();
		
		$this->type = $type;
		$this->list = array();
	}
	
	/**
	 * Implementation de object
	 * @see IRenderable::object()
	 */
	public function object() {
		return "Validator";
	}

	/**
	 * Implementation de properties
	 * @see IRenderable::properties()
	 */
	public function properties() {
		return parent::getProp($this);;
	}
	
	/**
	 * Implementation de scLog
	 * @see IRenderable::scLog()
	 */
	public function scLog() {
		ScCollectionLog::getInstance()->addSc(new ScLog($this->object(), get_object_vars($this)));
	}

	/**
	 * Implementation de render
	 * @see IScreen::render()
	 */
	public function render() {
		$this->scLog();
		return "{".$this->properties()."}";
	}
	
}
?>